package ar.com.digitalbricks.imprenta.general.impl;

import ar.com.digitalbricks.fwk.impl.PersistentImpl;
import ar.com.digitalbricks.imprenta.general.DiaDePago;
import ar.com.digitalbricks.imprenta.general.dao.DiaDePagoDAO;
import ar.com.digitalbricks.imprenta.general.enums.Dia;

public class DiaDePagoImpl extends PersistentImpl implements DiaDePago{
	private DiaDePagoDAO diaDePagoDAO;
	private Dia dia;

	@Override
	public Dia getDia() {
		return dia;
	}

	@Override
	public void setDia(Dia dia) {
		this.dia = dia;
	}

	public DiaDePagoDAO getDiaDePagoDAO() {
		return diaDePagoDAO;
	}

	public void setDiaDePagoDAO(DiaDePagoDAO diaDePagoDAO) {
		this.diaDePagoDAO = diaDePagoDAO;
	}

	@Override
	public void save() {
		this.getDiaDePagoDAO().save(this);
	}

	@Override
	public void delete() {
		this.getDiaDePagoDAO().delete(this);
	}
}